/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ffm.mtfw.classes;

/**
 * Class that represents a Tenant.
 *
 * @author
 * @matheus
 */
public class Tenant {

    private String id;
    private String name;

    public Tenant(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public Tenant(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Tenant other = (Tenant) obj;
        if ((this.id == null) ? (other.id != null) : !this.id.equals(other.id)) {
            return false;
        }
        return true;
    }
}
